home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / src / netlib / ioctl.c < prev    next >
C/C++ Source or Header  |  1994-03-30  |  841b  |  37 lines

  1. RCS_ID_C="$Id: ioctl.c,v 1.2 1994/03/30 07:39:20 jraja Exp $";
  2. /*
  3.  * ioctl.c --- set file control information
  4.  *
  5.  * Author: jraja <Jarno.Rajahalme@hut.fi>
  6.  *
  7.  * This file is part of the AmiTCP/IP Network Support Library.
  8.  *
  9.  * Copyright © 1994 AmiTCP/IP Group, <amitcp-group@hut.fi>
  10.  *                  Helsinki University of Technology, Finland.
  11.  *                  All rights reserved.
  12.  *
  13.  * Created      : Tue Mar 22 03:57:55 1994 jraja
  14.  * Last modified: Wed Mar 30 10:35:36 1994 jraja
  15.  *
  16.  */
  17.  
  18. #include <sys/param.h>
  19. #include <sys/socket.h>
  20.  
  21. int ioctl(int fd, unsigned int request, char *argp)
  22. {
  23.   int success;
  24.  
  25.   /*
  26.    * IoctlSocket will return EBADF if the d is not socket
  27.    */
  28.   success = IoctlSocket(fd, request, argp);
  29.  
  30.   /*
  31.    * Maybe the EBADF should be converted to EINVAL if the fd is an usual file?
  32.    */
  33.  
  34.   return success;
  35. }
  36.  
  37.